import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/page/index.vue'
import Community from '@/page/community/Community'
// import Shop from '@/page/shop/Shop'
import My from '@/page/my/My'
import New from '@/page/new/New'
import Detail from '@/page/detail/Detail'
import coupon from '@/components/vant/coupon'
import order from '@/page/order/order'
import addresses from '@/page/order/addresses'
import addressEdit from '@/page/order/addressEdit'
import invoices from '@/page/order/invoices'
import allgoods from '@/page/allgoods'
// import classify from '@/page/index/classify'
import topTen from '@/page/topTen/topTen'
import preSale from '@/page/preSale/preSale'
import articleDetail from '@/page/articleDetail/articleDetail.vue'
import goodsGroup from '@/page/goodsGroup.vue'
import timeLimit from '@/page/timeLimit.vue'
import joinIn from '@/page/joinIn.vue'
import hetong from '@/page/hetong.vue'
import numLimit from '@/page/numLimit.vue'
import myOrder from '@/page/myOrder.vue'
import orderDetail from '@/page/orderDetail.vue'
import logistics from '@/page/logistics.vue'
import search from '@/page/search.vue'
import search1 from "@/page/search1.vue"
import searchResult from '@/page/searchResult.vue'
import notecase from '@/page/notecase.vue'
import myAddress from '@/page/myAddress.vue'
import addAddress from '@/page/addAddress.vue'
import editAddress from '@/page/editAddress.vue'
import shopChart from '@/page/shopChart.vue'
import login from '@/page/login.vue'
import club from '@/page/club.vue'
import cashDetail from '@/page/cashDetail.vue'
import rebate from '@/page/rebate.vue'
import withdraw from '@/page/withdraw.vue'
import enjoy from '@/page/enjoy.vue'
import recharge from '@/page/recharge.vue'
import searchList from "@/page/searchList.vue"
import myCoupon from '@/page/my/myCoupon'
import getGoodsByCid from '@/page/getGoodsByCid.vue'
import help_Server from '@/page/help_server.vue'
import logisticsProblem from '@/page/logisticsProblem.vue'
import problemDetail from '@/page/problemDetail.vue'
import doubleTwelve from '@/page/activity/doubleTwelve.vue'
import successOrder from '@/page/order/successOrder.vue'
import prizeTwelve from '@/page/activity/prizeTwelve.vue'
import getPrize from '@/page/activity/getPrize.vue'
import myHistory from '@/page/my/myHistory.vue'
import blackCardVip from '@/page/blackCardVip.vue'
import publishComment from '@/page/order/publishComment.vue'
import turntable from '@/page/activity/turntable.vue'
import accountDetail from '@/page/accountDetail.vue'
import christmas from '@/page/activity/christmas.vue'
import zhuan from '@/page/activity/zhuan.vue'
import mentionList from '@/page/selfMention/index.vue'
import mentionDetail from '@/page/selfMention/mentionDetail.vue'
import mentionDetail2 from '@/page/selfMention/mentionDetail2.vue'
import mentionLogin from '@/page/selfMention/mentionLogin.vue'

/**
 * 增加  加盟商页面
 */
import joinIndex from '@/page/joinIn/index.vue'
import doJoin from '@/page/joinIn/dojoin.vue'
import contract from '@/page/joinIn/contract.vue'
import joinBill from '@/page/joinIn/joinBill.vue'
Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Index',
            component: Index,
            meta:{
              title:'纳品-首页'
            }
        }
        ,{
            path: '/community',
            name: 'Community',
            component: Community
        }
        // ,{
        //     path: '/shop',
        //     name: 'Shop',
        //     component: Shop
        // }
        ,{
            path: '/my',
            name: 'My',
            component: My,
            meta:{
              title:'我的'
            }

        }
        ,{
            path: '/new',
            name: 'New',
            component: New,
            meta:{
              title:'每日上新'
            }
        }
        ,{
          /*  path: '/detail/:type/:group_id/:join_id/:limit_id/:goods_id',*/
             path: '/detail',
            name: 'Detail',
            component: Detail,
            meta:{
              title:'商品详情'
            }
        }
        ,{
            path: '*',
            redirect: "/"
        }
        ,{
        path: '/coupon',
        name: 'coupon',
        component: coupon
      }
      ,{
        path: '/order',
        name: 'order',
        component: order,
        meta:{
          title:'确认订单'
        }
      }
      ,{
        path: '/addresses',
        name: 'addresses',
        component: addresses,
        meta:{
          title:'选择地址'
        }
      }
      ,{
        path: '/addressEdit',
        name: 'addressEdit',
        component: addressEdit,
        meta:{
          title:'地址编辑'
        }
      }
      ,{
        path: '/invoices',
        name: 'invoices',
        component: invoices,
        meta:{
          title:'申请发票'
        }
      }
      ,{
        path: '/allgoods',
        name: 'allgoods',
        component: allgoods,
        meta:{
          title:'全部商品'
        }
      }
      ,{
        path: '/topTen',
        name: 'topTen',
        component: topTen,
        meta:{
          title:'Top 10'
        }
      }
      ,{
        path: '/preSale',
        name: 'preSale',
        component: preSale,
        meta:{
          title:'预售专区'
        }
      },
      {
        path: '/articleDetail',
        name: 'articleDetail',
        component: articleDetail,
        meta: {
          title: '文章详情'
        }
      },
      {
        path: '/goodsGroup',
        name: 'goodsGroup',
        component: goodsGroup,
        meta: {
          title: '好货拼团'
        }
      },
      {
        path: '/timeLimit',
        name: 'timeLimit',
        component: timeLimit,
        meta: {
          title: '限时购'
        }
      },
      {
        path: '/joinIn',
        name: 'joinIn',
        component: joinIn,
        meta: {
          title: '商家加盟'
        }
      },
      {
        path: '/joinMerchant',
        name: 'joinMerchant',
        component: joinIndex,
        meta: {
          title: '加盟'
        }
      },
      {
        path: '/doJoin',
        name: 'doJoin',
        component: doJoin,
        meta: {
          title: '加盟'
        }
      },
      {
        path: '/joinBill',
        name: 'joinBill',
        component: joinBill,
        meta: {
          title: '我的纳品账单'
        }
      },
      {
        path: '/hetong',
        name: 'hetong',
        component: hetong,
        meta: {
          title: '我的合同'
        }
      },
      {
        path: '/numLimit',
        name: 'numLimit',
        component: numLimit,
        meta: {
          title: '限量购'
        }
      },{
        path: '/myOrder',
        name: 'myOrder',
        component: myOrder,
        meta: {
          title: '我的订单'
        }
      },{
        path: '/orderDetail',
        name: 'orderDetail',
        component: orderDetail,
        meta: {
          title: '订单详情'
        }
      },{
        path: '/logistics',
        name: 'logistics',
        component: logistics,
        meta: {
          title: '物流信息'
        }
      },
      {
        path: '/search',
        name: 'search',
        component: search,
        meta: {
          title: '搜索'
        }
      },
      {
        path: '/searchResult',
        name: 'searchResult',
        component: searchResult,
        meta: {
          title: '搜索结果'
        }
      },
      {
        path: '/notecase',
        name: 'notecase',
        component: notecase,
        meta: {
          title: '我的钱包'
        }
      },

      {
        path: '/myAddress',
        name: 'myAddress',
        component: myAddress,
        meta: {
          title: '我的收货地址'
        }
      },
      {
        path: '/addAddress',
        name: 'addAddress',
        component: addAddress,
        meta: {
          title: '我的收货地址'
        }
      },
      {
        path: '/editAddress',
        name: 'editAddress',
        component: editAddress,
        meta: {
          title: '我的收货地址'
        }
      },
      {
        path:'/shopChart',
        name: 'shopChart',
        component:shopChart,
        meta: {
          title: '购物车'
        }
      },
      {
        path: '/login',
        name: 'login',
        component: login,
        meta: {
          title: '登陆'
        }
      },
      {
        path: '/club',
        name: 'club',
        component: club,
        meta: {
          title: '社区'
        }
      },
      {
        path: '/cashDetail',
        name: 'cashDetail',
        component: cashDetail,
        meta: {
          title: '提现明细'
        }
      },
      {
        path: '/accountDetail',
        name: 'accountDetail',
        component: accountDetail,
        meta: {
          title: '账户明细'
        }
      },

      {
        path: '/rebate',
        name: 'rebate',
        component: rebate,
        meta: {
          title: '返利订单'
        }
      },
      {
        path: '/withdraw',
        name: 'withdraw',
        component: withdraw,
        meta: {
          title: "提现"
        }
      },

      {
        path: '/enjoy',
        name: 'enjoy',
        component: enjoy,
        meta: {
          title: '我喜欢'
        }
      },
      {
        path: '/recharge',
        name: 'recharge',
        component: recharge,
        meta: {
          title: '充值'
        }
      },
      {
        path: '/searchList',
        name: 'searchList',
        component: searchList,
        meta: {
          title: '搜索列表'
        }
      },
      {
        path: '/search1',
        name: 'search1',
        component: search1,
        meta: {
          title: '搜索'
        }
      },
      {
        path: '/myCoupon',
        name: 'myCoupon',
        component: myCoupon,
        meta: {
          title: '优惠券'
        }
      },
      {
        path: '/getGoodsByCid',
        name: 'getGoodsByCid',
        component: getGoodsByCid,
        meta: {
          title: '分类'
        }
      },
      {
        path: '/help_Server',
        name: 'help_Server',
        component: help_Server,
        meta: {
          title: '帮助和客服'
        }
       },
      {
        path: '/logisticsProblem',
        name: 'logisticsProblem',
        component: logisticsProblem,
        meta: {
          title: '物流问题'
        }
      },
      {
        path: '/problemDetail',
        name: 'problemDetail',
        component: problemDetail,
        meta: {
          title: '问题详情'
        }
      },
      {
        path: '/doubleTwelve',
        name: 'doubleTwelve',
        component: doubleTwelve,
        meta: {
          title: '双十二专场'
        }
      },
      {
        path: '/successOrder',
        name: 'successOrder',
        component: successOrder,
        meta: {
          title: '完成下单'
        }
      },
      {
        path: '/prizeTwelve',
        name: 'prizeTwelve',
        component: prizeTwelve,
        meta: {
          title: '狂欢双十二'
        }
      },
      {
        path: '/getPrize',
        name: 'getPrize',
        component: getPrize,
        meta: {
          title: '抽奖页面'
        }
      },
      {
        path: '/myHistory',
        name: 'myHistory',
        component: myHistory,
        meta: {
          title: '足迹'
        }
      },
      {
        path: '/blackCardVip',
        name: 'blackCardVip',
        component: blackCardVip,
        meta: {
          title: '黑卡会员'
        }
      },
      {
        path: '/publishComment',
        name: 'publishComment',
        component: publishComment,
        meta: {
          title: '发表评价'
        }
      },
      {
        path: '/turntable',
        name: 'turntable',
        component: turntable,
        meta: {
          title: '抽奖'
        }
      },
      {
        path: '/christmas',
        name: 'christmas',
        component: christmas,
        meta: {
          title: '双旦专场'
        }
      },
      {
        path: '/zhuan',
        name: 'zhuan',
        component: zhuan,
        meta: {
          title: 'zhuan'
        }
      },
      {
        path: '/mentionList',
        name: 'mentionList',
        component: mentionList,
        meta:{
          title:'提货'
        }
      },
      {
        path: '/mentionDetail',
        name: 'mentionDetail',
        component: mentionDetail,
        meta:{
          title:'货物详情'
        }
      },
      {
        path: '/mentionDetail2',
        name: 'mentionDetail2',
        component: mentionDetail2,
        meta:{
          title:'货物详情'
        }
      },
      {
        path: '/mentionLogin',
        name: 'mentionLogin',
        component: mentionLogin,
        meta:{
          title:'登录'
        }
      },
      {
        path: '/contract',
        name: 'contract',
        component: contract,
        meta:{
          title:'纳品网加盟合作服务协议'
        }
      },


    ]
})
